<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
        <title>Olvidó su contraseña?</title>
        <link href="../css/Layout.css" rel="stylesheet" type="text/css"/>
    </h:head>
    <h:body>                
        <center>
            <a href="index.xhtml"><img src="img/banner.png" width="709" height="100"/></a>
        </center>   
        
        <h:panelGroup id="messagePanel" layout="block">
            <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
        </h:panelGroup>
        <p:panel header="Olvido su contraseña?">
            <h:form id="frmOlvidoContrasena"> 
                <table width="434" border="0" style="font-size: small">
                    <tr>
                        <th align="right" scope="row"><h:outputText value="Correo Electronico: "/></th>
                        <td align="left"><h:inputText id="txtRuc" value="#{emailController.usuario.correo}" title="Correo Electronico" required="true" requiredMessage="Es necesario el campo 'Correo Electronico'" size="30"/></td>
                    </tr>                        
                    <tr>                                
                        <th align="center" colspan="2" scope="row"><h:commandButton action="#{emailController.enviarEmailContrasena()}" value="Enviar Email"/></th>
                    </tr>                                       
                </table>   
                <div align="right">                        
                    <p:button outcome="LogIn" value="#{chofer.RegresarIndex}"/>
                </div>   
            </h:form>
        </p:panel> 
    </h:body>
</html>

